package com.general.template.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.general.template.export.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @Author: 杰哥
 * Date: 2021/2/16 14:59
 * @Description:
 **/

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "power_user")
public class PowerUser implements Serializable {
    /**
     * 唯一主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 岗位id
     */
    @TableField(value = "jobs_id")
    @Excel(name="岗位")
    private Integer jobsId;

    /**
     * 用户姓名
     */
    @TableField(value = "name")
    @Excel(name="用户姓名")
    private String name;

    /**
     * 用户手机号码
     */
    @TableField(value = "phone")
    @Excel(name="用户手机号码")
    private String phone;

    /**
     * 用户登陆密码
     */
    @TableField(value = "password")
    @Excel(name="用户密码")
    private String password;

    /**
     * 用户头像路径
     */
    @TableField(value = "header_url")
    private String headerUrl;

    /**
     * 是否禁止用户  0否 1是
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 用户创建时间
     */
    @TableField(value = "create_time")
    @JsonFormat(locale="zh", timezone="GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_JOBS_ID = "jobs_id";

    public static final String COL_NAME = "name";

    public static final String COL_PHONE = "phone";

    public static final String COL_PASSWORD = "password";

    public static final String COL_HEADER_URL = "header_url";

    public static final String COL_STATUS = "status";

    public static final String COL_CREATE_TIME = "create_time";
}